import { defineStore } from 'pinia';
const _PageLimit = window.localStorage.getItem('pageSize');
export const useUserStore: any = defineStore('user', {
  state: () => ({
    pageSize: _PageLimit ? Number(_PageLimit) : 30,
    title: '重庆影彩',
    menuTab: [],
    menuPath: [],
    apiKey: '6388e2c694f6401ea8fbba986804dcdc',
  }),
  actions: {}, //调用方法
  persist: true, // 启用持久化
});
export const goodStore: any = defineStore('good', {
  state: () => ({
    goods: [],
  }),
  actions: {}, //调用方法
  persist: true, // 启用持久化
});

export const errorStore: any = defineStore('error', {
  state: () => ({
    errorArr: [],
  }),
  actions: {}, //调用方法
  persist: true, // 启用持久化
});
